﻿//----------------------------------------------------------------
// Desc: 
// Edit: 
//
// Date Created: 
//
// Update Date : 
//
// Copyright (c) Fuel4D (http://www.fuel4d.com), All rights reserved.
//
//----------------------------------------------------------------
#pragma once


#define FUEL_MODULE_MEDIA 1


#include "FuelCore.h"
#include "Media/FMediaDefine.h"
#include "Media/IFAudio.h"
#include "Media/IFWeb.h"


// 简单的播放声音，不能回收
extern FAPI void FPlaySoundW(const WCHAR* filename);
extern FAPI void FPlaySoundA(const ACHAR* filename);
// 创建音效对象
extern FAPI IFAudio* FNewAudio(FNEW_FUNC_API, EF_SOUND_TYPE type);
// 创建WEB控件
extern FAPI IFWebBrowser* FNewWebBrowser(FNEW_FUNC_API);


#ifdef UNICODE
#define FPlaySound          FPlaySoundW
#else
#define FPlaySound          FPlaySoundA
#endif

#if FUEL_OS_WINDOWS
#define FFPlaySound         FPlaySoundW
#else
#define FFPlaySound         FPlaySoundA
#endif